<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="packageDetailAvailable.title"/></title>
    <meta name="heading" content="<fmt:message key='packageDetailAvailable.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>
     
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpPackageDetailsReview.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<fieldset>
            <legend><fmt:message key="packageDetailReview.typeReport"/></legend>
<table>
    <tr>
     <td>
        <input type="button" onclick="location.href='<c:url value="/choicePackageDetailReview.html?choicedPackDetRev=rollo"/>'"
           value="<fmt:message key="button.rollo"/>"
     </td>
    </tr>
</table>
</fieldset>
<br/>
<input type="button" onclick="location.href='<c:url value="/packageDetailsReview.html"/>'"
           value="<fmt:message key="button.done"/>"/>

<c:out value="${buttons}" escapeXml="false" />
<br/>
<br/>
<c:if test="${choicedPackDetRev != null}">
<fieldset>
       <legend><fmt:message key="reportMaterialGral.selectedPackageDetailReport"/></legend>

        <table>
        <tr>
         <td>
            <input type="button" onclick="location.href='<c:url value="/choicePackDetRevAll.html"/>'"
               value="<fmt:message key="button.all"/>"
         </td>
         <td>
            <input type="button" onclick="location.href='<c:url value="/choicePackDetRevWithoutEdit.html"/>'"
               value="<fmt:message key="button.withoutedit"/>"
         </td>
         <td>
            <input type="button" onclick="location.href='<c:url value="/choicePackDetRevEdit.html"/>'"
               value="<fmt:message key="button.edit"/>"
         </td>
        </tr>
        </table>
        <s:hidden key="id" value="%{id}"/>
    <display:table name="packageDetails" class="table" id="packageDetails" export="false" requestURI="" pagesize="10">

        <display:column titleKey="packageDetail.modifie" href="editPackageDetailReview.html" paramId="idPd"
                        paramProperty="id">
            <fmt:message key="packageDetail.modifie"/>
        </display:column>
        <display:column property="code" sortable="true" titleKey="packageDetail.code"/>
        <display:column property="packageName" sortable="true" titleKey="packageDetail.packageName"/>
        <display:column property="quantity" sortable="true" titleKey="packageDetail.quantity"/>
        <display:column property="realQuantity" sortable="true" titleKey="packageDetail.realQuantity"/>
        <display:column property="stock" sortable="true" titleKey="packageDetail.stock"/>

    </display:table>
    
</fieldset>
</c:if>